projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f62ca6
)
usb: ehci: Fix aliasing issue in EHCI interrupt code
author
Vincent Palatin
<
[email protected]
>
Wed, 6 Mar 2013 14:08:32 +0000
(14:08 +0000)
committer
Marek Vasut
<
[email protected]
>
Mon, 18 Mar 2013 17:58:54 +0000
(18:58 +0100)
The interrupt endpoint handling code stores the buffer pointer in the QH
padding field. We need to make it the size of a pointer to avoid strict
aliasing issue with the compiler.
Signed-off-by: Vincent Palatin <
[email protected]
>
Signed-off-by: Simon Glass <
[email protected]
>
drivers/usb/host/ehci.h
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci.h
b/drivers/usb/host/ehci.h
index 46b535f36f964e430dc8e48d48e98c93e45beafb..d090f0a53e87349ee96a5bfe7d64a917bf153d0e 100644
(file)
--- a/
drivers/usb/host/ehci.h
+++ b/
drivers/usb/host/ehci.h
@@
-247,7
+247,7
@@
struct QH {
* aligned to 32 bytes
*/
union {
- uint
8_t fill[16
];
+ uint
32_t fill[4
];
void *buffer;
};
};